package com.wlhse.dao;

import com.wlhse.entity.CheckTypePojo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CheckTypeDao {


    int addCheckType(CheckTypePojo checkTypePojo);

    int deleteCheckType(@Param("id") Integer id);

    int updateCheckType(CheckTypePojo checkTypePojo);

    //根据id查询单条记录
    CheckTypePojo queryCheckTypeById(@Param("id") Integer id);

    //查询
    List<CheckTypePojo> queryCheckByName(@Param("checkTypeName") String checkTypeName);

    int queryTotal(@Param("checkTypeName") String checkTypeName);

    String getMaxString();
}
